package com.yhsimon.bridge;

/**
 * @author： YHSimon
 * @date： 2021-08-31 14:11
 */
public abstract class Phone {
    //聚合品牌
    private Brand brand;

    public Phone (Brand brand){
        super();
        this.brand=brand;
    }

    protected void open(){
        this.brand.open();
    }

    protected void close(){
        this.brand.close();
    }

    protected void call(){
        this.brand.call();
    }
}
